package com.funtl.screw.common.swagger.annotation;

import com.funtl.screw.common.swagger.config.GatewaySwaggerAutoConfiguration;
import com.funtl.screw.common.swagger.config.SwaggerAutoConfiguration;
import com.funtl.screw.common.swagger.support.SwaggerProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * @author Lusifer
 * @since 2020/10/2 swagger
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableConfigurationProperties(SwaggerProperties.class)
@Import({SwaggerAutoConfiguration.class, GatewaySwaggerAutoConfiguration.class})
public @interface EnableServiceSwagger2 {

}
